home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
mdidem
/
mainmdi.frm
< prev
next >
Wrap
Text File
|
1995-05-02
|
1KB
|
58 lines
VERSION 2.00
Begin MDIForm MainMdi
Caption = "Database and MDI Demo"
ClientHeight = 5820
ClientLeft = 1785
ClientTop = 1530
ClientWidth = 7365
Height = 6510
Icon = MAINMDI.FRX:0000
Left = 1725
LinkTopic = "MDIForm1"
Top = 900
Width = 7485
Begin Menu FileMenu
Caption = "&File"
Begin Menu OpenMenu
Caption = "&Open"
End
Begin Menu sep
Caption = "-"
End
Begin Menu ExitMenu
Caption = "E&xit"
End
End
End
Option Explicit
Sub MDIForm_Load ()
Left = ReadIniInt("Settings", "WindowLeft", (MainMdi.Left))
Top = ReadIniInt("Settings", "WindowTop", (MainMdi.Top))
Height = ReadIniInt("Settings", "WindowHeight", (MainMdi.Height))
Width = ReadIniInt("Settings", "WindowWidth", (MainMdi.Width))
WindowState = ReadIniInt("Settings", "WindowState", Normal)
End Sub
Sub MDIForm_Unload (Cancel As Integer)
WriteIni "Settings", "WindowState", (WindowState)
If WindowState = Normal Then
WriteIni "Settings", "WindowLeft", (Left)
WriteIni "Settings", "WindowTop", (Top)
WriteIni "Settings", "WindowWidth", (Width)
WriteIni "Settings", "WindowHeight", (Height)
End If
End Sub
Sub OpenMenu_Click ()
OpenDialog.Show 1
End Sub